<:!:/><!--
/**
 * @file pager.html
 * @author Alejandro Dario Simi
 * @date $Date: 2013-05-19 06:39:24 +0000 (Sun, 19 May 2013) $
 *
 * $Id: pager.html 65 2013-05-19 06:39:24Z daemonraco@gmail.com $
 * $URL: http://wcomix.googlecode.com/svn/tags/wcomix-1.0/themes/mdefault/templates/generics/pager.html $
 */
--><::/>
<:ISSET:var=PAGER-SHOW:/><div class="Pager" onclick="JumpTo();"><:VAR:/>PAGER-CURRENT<::/> of <:VAR:/>PAGER-COUNT<::/></div>

<script type="text/javascript">
	function JumpTo() {
		var page = prompt("Please select the page you want\nBetween 1 and <:VAR:/>PAGER-COUNT<::/>", "<:VAR:/>PAGER-CURRENT<::/>");
		var offset = <:ISSET:var=PAGER-OFFSET:/><:VAR:/>PAGER-OFFSET<::/><::/><:ISSET:!:var=PAGER-OFFSET:/>0<::/>;
		if(page != null && page != <:VAR:/>PAGER-CURRENT<::/>) {
			if(page > 0 && page <= <:VAR:/>PAGER-COUNT<::/>) {
				page = page - offset;
				document.location.href = "<:VAR:/>PAGER-OPENLINK<::/>" + page;
			} else {
				alert("Sorry, '" + page + "' is not an acceptable value.");
			}
		}
	}
</script><::/>